
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path')
class AppBootHook {
  app: any;

  constructor(app) {
    this.app = app;
  }

  async didLoad() {
    const { app } = this;
    // 导入验证规则
    const directory = path.join(app.config.baseDir, 'app/validate');
    app.loader.loadToApp(directory, 'validate');
  }
  async willReady() {
  }
}

module.exports = AppBootHook;